package HLLib.game;

import HLCode.HLClass;
import HLCode.HLClassManager;
import HLCode.HLClassManager_H;
import HLCode.HLLibObject;

public class HLSpriteInfo extends HLLibObject {
    public HLClass GetClass(HLClassManager classManager) {
        return classManager.GetLibClass(HLClassManager_H.CLASS_GROUP_TYPE_LIB_GAME, HLClassManager_H.LIB_CLASS_GAME_SpriteInfo);
    }

    public int GetInt(int index) {
        switch (index) {
        case 0: {
            return type;
        }
        case 1: {
            return gridX;
        }
        case 2: {
            return gridY;
        }
        case 3: {
            return direct;
        }
        case 4: {
            return scriptIndex;
        }
        }
        return 0;
    }

    public void SetInt(int index, int value) {
        switch (index) {
        case 0: {
            type = (short) value;
            return;
        }
        case 1: {
            gridX = (byte) value;
            return;
        }
        case 2: {
            gridY = (byte) value;
            return;
        }
        case 3: {
            direct = (byte) value;
            return;
        }
        case 4: {
            scriptIndex = value;
            return;
        }
        }
    }

    public short type;

    public byte gridX;

    public byte gridY;

    public byte direct;

    public int scriptIndex;
}
